package com.zz.sboot.test;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

@Component
public class Hello {

    @Autowired
    private Hello hello;

    public Hello() {
        System.out.println("construct hello: " + hello);
    }

    @PostConstruct
    public void construct() {
        System.out.println("post construct hello: " + hello);
    }



}
